<?php

class System_Controller {
	
	/**
	 * 
	 * @var Smarty
	 */
	private $smarty = null;
	
	/**
	 *
	 * @var string
	 */
	private $name = null;
	
	/**
	 *
	 * @var string
	 */
	private $action = null;
	
	public function init(Smarty $smarty, $name, $action=null) {
		$this->smarty = $smarty;
		$this->name = $name;
		$this->action = $action;
		
		//$this->smarty->assign($tpl_var);
	}
	
	public function before() {}
	
	public function after() {}
	
	public function getSmarty() {
		return $this->smarty;
	}
	
	public function getName() {
		return $this->name;
	}
	
	public function getAction() {
		return $this->action;
	}
	
	public function setAction($action) {
		$this->action = $action;
	}
}